﻿using System;
namespace 三式
{
    class Robot : Info
    {
        public void RobotName(string str)
        {
            switch (str)
            {
                case "1":
                    Name = "刘备";
                    break;
                case "2":
                    Name = "孙权";
                    break;
                case "3":
                    Name = "曹操";
                    break;
            }
        }
        public void RobotPunch(int x)
        {
            
            if (x == 1) { PunchId = 1; PunchName = "石头"; }
            else if (x == 2) { PunchId = 2; PunchName = "剪刀"; }
            else if (x == 3) { PunchId = 3; PunchName = "布"; }
        }
    }
}
